package com.yfqy.admin.domain.dto.system;

import com.yfqy.admin.constant.MyConstants;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class ModifySysUser {

    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 密码
     */
    private String password;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 邮箱
     */
    @Email(regexp = MyConstants.EMAIL_REGEX, message = "邮箱格式不正确")
    private String email;

    /**
     * 1-正常，2-锁定，3-删除
     */
    @Range(min = 1, max = 2, message = "用户状态不合法")
    private Byte status;

}
